<?php
return array (
	
	'basePath' => dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . '..', 
	'name' => "yiitest", 
	'defaultController' => 'login', 
	'import' => array (
		
		'application.models.*', 
		'application.components.*' 
	), 
	'components' => array (
		
		'db' => array (
			
			'connectionString' => 'mysql:host=localhost;dbname=trg', 
			'emulatePrepare' => true, 
			'username' => 'root', 
			'password' => '', 
			'charset' => 'utf8', 
			'tablePrefix' => 'trg_' 
		), 
		'smarty' => array (
			
			'class' => 'application.extensions.CSmarty' 
		), 
		'nusoap' => array (
			
			'class' => 'application.extensions.CNusoap' 
		), 
		'user' => array (
			
			'class' => 'WebUser', 
			'loginUrl' => array (
				
				'login' 
			), 
			'allowAutoLogin' => true 
		), 
		
		//		'errorHandler'=>array(
		//            'errorAction'=>'error',
		//        ),
		'urlManager' => array (
			
			'urlFormat' => 'path', 
			'showScriptName' => FALSE, 
			'urlSuffix' => '.html', 
			'rules' => array (
				
				'<controller:\w+>/<id:\d+>' => '<controller>/view', 
				'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>', 
				'<controller:\w+>/<action:\w+>/<id:\d+>-<sid:\d+>' => '<controller>/<action>', 
				'<controller:\w+>/<action:\w+>/<id:\d+>-<sid:\d+>-<sid1:\d+>' => '<controller>/<action>', 
				'<controller:\w+>/<action:\w+>' => '<controller>/<action>' 
			) 
		), 
		'cache' => array (
			
			'class' => 'system.caching.CDbCache' 
		) 
	), 
	'params' => require (dirname ( __FILE__ ) . '/params.php') 
); 
//	
//	'parmas' => array (
//		
//		'postsPerPage' => 2, 
//		'nextPageLabel' => '上一页' 
//	) 


?>